package com.example.registration.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @ClassName
 * @Description TODO
 * @Author YangWenJian
 * @Date
 * @Version 1.0
 **/
public class Scheduling {
    private Integer time_id;//时间段
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format="yyyy-MM-dd")
    private Date stating_time;//起始时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format="yyyy-MM-dd")
    private Date end_time;//结束时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format="yyyy-MM-dd")
    private Date date_time;//日期


    public Integer getTime_id() {
        return time_id;
    }

    public void setTime_id(Integer time_id) {
        this.time_id = time_id;
    }

    public Date getStating_time() {
        return stating_time;
    }

    public void setStating_time(Date stating_time) {
        this.stating_time = stating_time;
    }

    public Date getEnd_time() {
        return end_time;
    }

    public void setEnd_time(Date end_time) {
        this.end_time = end_time;
    }

    public Date getDate_time() {
        return date_time;
    }

    public void setDate_time(Date date_time) {
        this.date_time = date_time;
    }

    @Override
    public String toString() {
        return "Scheduling{" +
                "time_id=" + time_id +
                ", stating_time=" + stating_time +
                ", end_time=" + end_time +
                ", date_time=" + date_time +
                '}';
    }
}
